package com.totcy.atom.bean;

public class PaperBean {
/*    {
        "id": 509,
            "subject_id": 3,
            "title": "系统集成项目管理工程师 2018年上半年 综合试题",
            "date": "2018年上半年",
            "questions_count": "75",
            "subject": {
        "id": 3,
                "created_at": 1501466788,
                "updated_at": 1501466788,
                "name": "系统集成项目管理工程师",
                "level": 2,
                "papers_count": 38
    },
        "level": 2,
            "paper_type": 1
    }*/

    private int id;
    private int subject_id;
    private String title;
    private String date;
    private String questions_count;
    private SubjectBean subject;
    private int level;
    private int paper_type;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getSubject_id() {
        return subject_id;
    }

    public void setSubject_id(int subject_id) {
        this.subject_id = subject_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getQuestions_count() {
        return questions_count;
    }

    public void setQuestions_count(String questions_count) {
        this.questions_count = questions_count;
    }

    public SubjectBean getSubject() {
        return subject;
    }

    public void setSubject(SubjectBean subject) {
        this.subject = subject;
    }

    public int getLevel() {
        return level;
    }

    public String getLevelName() {
        String levelName;
        switch (level) {

            case 1:
                levelName = "初级";
                break;
            case 2:
                levelName = "中级";
                break;
            case 3:
                levelName = "高级";

                break;
            default:
                levelName = "未知";
                break;
        }
        return levelName;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getPaper_type() {
        return paper_type;
    }

    public void setPaper_type(int paper_type) {
        this.paper_type = paper_type;
    }
}
